﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _010_011_012操作符详解_5_
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Student stu = new Student();
            stu.Report();
            CsStudent cs = new CsStudent();
            cs.Report();
        }
    }

    //类与类的继承
    class Student
    {
        public void Report()
        {
            Console.WriteLine("我是一位学生");
        }
    }

    //类的继承
    class CsStudent : Student
    {
        //子类对父类方法的隐藏
        new public void Report()
        {
            Console.WriteLine("我是一位CS学生");

        }

    }
}
